package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

/**
 * @author James
 * @date 2022/1/21 15:51
 **/
public class ItemPo {
    private String playerCode;
    private int type;//物品类型
    private int dataId;//物品ID
    private int number;//物品数量
    private long updateTime;//更新时间

    public static ResultObjectBuilder<ItemPo> builder = rs -> {
        ItemPo itemPo = new ItemPo();
        itemPo.setPlayerCode(rs.getString("pCode"));
        itemPo.setType(rs.getInt("type"));
        itemPo.setDataId(rs.getInt("dataId"));
        itemPo.setNumber(rs.getInt("number"));
        itemPo.setUpdateTime(rs.getLong("updateTime"));
        return itemPo;
    };

    public String getPlayerCode() {
        return playerCode;
    }

    public void setPlayerCode(String playerCode) {
        this.playerCode = playerCode;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }
}
